Skip to content

fix(controller): ensure iteration on capsule ownerreferences#1059

Merged
oliverbaehler merged 1 commit intoprojectcapsule:mainfrom
oliverbaehler:fix/multi-owners
May 2, 2024
Merged

fix(controller): ensure iteration on capsule ownerreferences#1059
oliverbaehler merged 1 commit intoprojectcapsule:mainfrom
oliverbaehler:fix/multi-owners

Conversation

@oliverbaehler
Copy link
Copy Markdown
Collaborator

While automating capsule for a HCI solution i noticed we have this bug. If you try to add another ownerreference you are always met with this error:

error: namespaces "cluster-fx9kggjwjd" could not be patched: admission webhook "namespaces.capsule.clastix.io" denied the request: Tenant.capsule.clastix.io "fx9kggjwjd" not found

fx9kggjwjd is representative for the new ownerreference name added. This fix checks if the ownerreference is actually from a tenant, if not it's skipped.

@oliverbaehler oliverbaehler changed the title Fix/multi owners fix(controller): ensure iteration on capsule ownerreferences Apr 30, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 30, 2024

Deploy Preview for capsule-documentation canceled.

Name Link
🔨 Latest commit cde6e15
🔍 Latest deploy log https://app.netlify.com/sites/capsule-documentation/deploys/663203a072975c000838e172

@oliverbaehler oliverbaehler added this to the v0.7.0 milestone Apr 30, 2024
@oliverbaehler oliverbaehler force-pushed the fix/multi-owners branch 2 times, most recently from e8dfa83 to b23ba8a Compare April 30, 2024 23:52
Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
@oliverbaehler oliverbaehler requested a review from prometherion May 1, 2024 09:51
@oliverbaehler oliverbaehler merged commit e418f74 into projectcapsule:main May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants